#!/bin/bash

exec_path=$(dirname "$0")

cd ${exec_path}

mkdir -p ../log


port=8088


cmd="jmx_prometheus_httpserver"
pid1=$(ps aux | grep -w "$cmd" | grep java |grep -v grep | awk -F ' ' '{print$2}')
[ -n "$pid1" ] && kill -9 $pid1


java -jar ../bin/jmx_prometheus_httpserver-0.18.0.jar 0.0.0.0:${port} ../conf/zookeeper.yaml &

netstat -ntlp | grep java | grep ${port}

sleep 1

netstat -ntlp | grep ${port}




